package com.xqzgj.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xqzgj.system.domain.StockInfo;
import com.xqzgj.system.mapper.StockWarningMapper;
import com.xqzgj.system.service.IStockWarningService;

/**
 * 库存预警Service业务层处理
 * 
 * @author xqzgj
 */
@Service
public class StockWarningServiceImpl implements IStockWarningService
{
    @Autowired
    private StockWarningMapper stockWarningMapper;

    /**
     * 查询库存预警数量
     * 
     * @return 预警数量
     */
    @Override
    public Integer selectWarningCount()
    {
        return stockWarningMapper.selectWarningCount();
    }

    /**
     * 查询库存预警列表
     * 
     * @param stockInfo 库存信息
     * @return 库存预警列表
     */
    @Override
    public List<StockInfo> selectWarningList(StockInfo stockInfo)
    {
        return stockWarningMapper.selectWarningList(stockInfo);
    }
}